-- GENERATED SPELL FOR [Grishna Scorncrow] --


function spell0_19990(pUnit, Event) --@Detect Whispers,n/a--
pUnit:FullCastSpellOnTarget(37473,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19990', 622, 1)
end

function spell1_19990(pUnit, Event) --@Gushing Wound,n/a--
pUnit:FullCastSpellOnTarget(35321,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19990', 25000, 1)
end

function Sorts_19990(pUnit, Event)
local choix_sorts_19990 = math.random(0, 1)
if choix_sorts_19990 == 0 then
pUnit:RegisterEvent('spell0_19990', 1, 1)
end
if choix_sorts_19990 == 1 then
pUnit:RegisterEvent('spell1_19990', 1, 1)
end
end

function mob19990_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19990', math.random(1500, 3000), 1)
end

function mob19990_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19990_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19990_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19990, 1, 'mob19990_Action')
RegisterUnitEvent(19990, 2, 'mob19990_Leave')
RegisterUnitEvent(19990, 3, 'mob19990_Kill')
RegisterUnitEvent(19990, 4, 'mob19990_Die')
